package Account;

import java.util.HashMap;

public class AcountList {
    HashMap<String,Account> map = new HashMap<>();
    public int UsedSize;
    public AcountList(){
        map.put("123123123",new Account("123123123","000",10,"芜湖"));
        map.put("999999999",new Account("999999999","999",100,"芜湖他爸"));
        map.put("100000000",new Account("100000000","000",999,"芜湖他爸"));
    }


    public HashMap<String, Account> getMap() {
        return map;
    }

    public void setMap(HashMap<String, Account> map) {
        this.map = map;
    }

    public void setAccount(Account account){
        this.map.put(account.getAcountNum(),account);
    }
}
